From 7e77ea99431c7943c9766b9c530b6cd8c24aaa7a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 21 Mar 2005 05:07:20 +0000 Subject: [PATCH] Mark param spec strings as static. 2005-03-21 Matthias Clasen * gdk-pixbuf.c (gdk_pixbuf_class_init): Mark param spec strings as static. --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/gdk-pixbuf.c | 29 +++++++++++------------------ 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 0fd4f5d5ba..8fa0f71119 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2005-03-21 Matthias Clasen + + * gdk-pixbuf.c (gdk_pixbuf_class_init): Mark param spec strings + as static. + 2005-03-14 Matthias Clasen Make PLT-reduction work with gcc4, and don't include diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c index 54cb5a5664..084bd22086 100644 --- a/gdk-pixbuf/gdk-pixbuf.c +++ b/gdk-pixbuf/gdk-pixbuf.c @@ -95,7 +95,9 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass) object_class->finalize = gdk_pixbuf_finalize; object_class->set_property = gdk_pixbuf_set_property; object_class->get_property = gdk_pixbuf_get_property; - + +#define PIXBUF_PARAM_FLAGS G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY|\ + G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB /** * GdkPixbuf:n-channels: * @@ -110,8 +112,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass) 0, G_MAXINT, 3, - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY)); + PIXBUF_PARAM_FLAGS)); g_object_class_install_property (object_class, PROP_COLORSPACE, @@ -120,9 +121,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass) P_("The colorspace in which the samples are interpreted"), GDK_TYPE_COLORSPACE, GDK_COLORSPACE_RGB, - - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY)); + PIXBUF_PARAM_FLAGS)); g_object_class_install_property (object_class, PROP_HAS_ALPHA, @@ -130,8 +129,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass) P_("Has Alpha"), P_("Whether the pixbuf has an alpha channel"), FALSE, - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY)); + PIXBUF_PARAM_FLAGS)); /** * GdkPixbuf:bits-per-sample: @@ -147,8 +145,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass) 1, 16, 8, - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY)); + PIXBUF_PARAM_FLAGS)); g_object_class_install_property (object_class, PROP_WIDTH, @@ -158,8 +155,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass) 1, G_MAXINT, 1, - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY)); + PIXBUF_PARAM_FLAGS)); g_object_class_install_property (object_class, PROP_HEIGHT, @@ -169,8 +165,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass) 1, G_MAXINT, 1, - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY)); + PIXBUF_PARAM_FLAGS)); /** * GdkPixbuf:rowstride: @@ -187,16 +182,14 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass) 1, G_MAXINT, 1, - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY)); + PIXBUF_PARAM_FLAGS)); g_object_class_install_property (object_class, PROP_PIXELS, g_param_spec_pointer ("pixels", P_("Pixels"), P_("A pointer to the pixel data of the pixbuf"), - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY)); + PIXBUF_PARAM_FLAGS)); } static void -- 2.30.2